package com.ucode.cgms.mapper;

import com.ucode.model.cgms.CgmsCompanionUser;
import com.ucode.springboot.starter.mybatis.core.base.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;

/**
 * 陪玩用户Mapper
 * @Author: liliang
 * @Date: 2025/5/9 14:49
 * @Version: 1.0
 */
@Mapper
public interface CgmsCompanionUserMapper extends BaseMapper<CgmsCompanionUser,Long> {
    /**
     * 变更状态
     * @param ids
     * @param statuz
     * @return
     */
    public int updateStatus(@Param("ids") Collection<Long> ids , @Param("statuz")Integer statuz);

    /**
     * 累计订单量
     * @param id
     * @param step
     * @return
     */
    public int updateIncrOrderCount(@Param("id") Long id , @Param("step")Integer step);

}
